from rest_framework.serializers import ModelSerializer

from rest_framework import serializers

from .models import Question


class StudentModelSerializer(ModelSerializer):
    class Meta:
        model = Question
        fields = "__all__"

class ServiceSerializer(serializers.Serializer):
    id = serializers.IntegerField(read_only=True)
    name = serializers.CharField(read_only=True)
    service_type = serializers.CharField(read_only=True)
    desc = serializers.CharField(read_only=True)